package com.khbr.employee_imfo.model;

/**
 * Created by John.C on 2018/11/30.
 */
public class PageDepart{
    //从第head页开始查询
    private Integer head=1;
    //每页显示count条记录
    private int count=2;
    //数据总共打印pageAmount页
    private int pageAmount=0;
    //总共record条记录
    private int record;

    public Integer getHead() {
        return head;
    }

    public void setHead(Integer head) {
        this.head = head;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getPageAmount() {
        if(pageAmount%count==0){
            return record/count;
        }
        return (record/count)+1;
    }

    public void setPageAmount(int pageAmount) {
        this.pageAmount = pageAmount;
    }

    public int getRecord() {
        return record;
    }

    public void setRecord(int record) {
        this.record = record;
    }
}